<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt" lang="pt">
<head>
    <meta http-equiv="content-type" content="text/html" charset="utf-8"/>
    <title>Conheça o País da Copa!</title>
    
    <link rel="shortcut icon" href="<?php echo base_url()?>public/imagens/favicon2.ico" type="image/x-icon" />
    <link rel="stylesheet" href="<?php echo base_url()?>public/css/geral.css"/>
    <link rel="stylesheet" href="<?php echo base_url()?>public/css/cabecalho.css"/>
    <link rel="stylesheet" href="<?php echo base_url()?>public/css/menu.css" />
    <link rel="stylesheet" href="<?php echo base_url()?>public/css/formulario.css" />
    <link rel="stylesheet" href="<?php echo base_url()?>public/css/tabela.css" />
    <link rel="stylesheet" href="<?php echo base_url()?>public/css/botoes.css" />
    <link rel="stylesheet" href="<?php echo base_url()?>public/js/jquery-ui-1.10.3.custom/css/jquery-ui-1.10.3.custom.css" />
        
    <script type="text/javascript" src="<?php echo base_url()?>public/js/jquery-1.10.1.js"> </script>
    <script type="text/javascript" src="<?php echo base_url()?>public/js/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.js"> </script>
    <script type="text/javascript" src="<?php echo base_url()?>public/js/jquery.validate.js"> </script>
    <script type="text/javascript" src="<?php echo base_url()?>public/js/jquery.maskedinput-1.3.1.min.js"> </script>
    <script type="text/javascript" src="<?php echo base_url()?>public/js/jquery.tablesorter.js"> </script>
    
    <script>
            function abrePopUp(){
                $('.popUp').fadeIn(600);
                $('.popUpBack').fadeIn(600);
            }
            
            $(document).ready(function(){
               $('.listagem').tablesorter();
               $('#pesquisar').keyup(function(e){
                    var encontrou = false;
                   
                    var termo = $(this).val().toLowerCase();
                    $('.listagem > tbody > tr').each(function(){
                        $(this).find('td').each(function(){
                            if($(this).text().toLowerCase().indexOf(termo) > -1)
                                encontrou = true;
                        });
                        if(!encontrou)
                            $(this).hide();
                        else
                            $(this).show();
                        encontrou = false;
                        
                    });
                });
            });
        </script>
        
<body>
    <div class="popUpBack">
        <div class="popUpContainer">
            <div class="popUp"></div>
        </div>
    </div>
    
    <div id="cabecalho-wrapper">
        <div id="cabecalho" class="clear wrapper">
            <div id="logo">
                <img src="<?php echo base_url()?>public/imagens/logos/logo.png"/> 
            </div>
            
            <div id="titulo">Conheça o País da Copa!</div>
            
        </div>
    </div>

    <div id="menu-wrapper" class="clear">
        <div id="menu" class="wrapper">
            <ul>
                <li><?php echo anchor('cidade', 'Cidades', 'cidade' == $this->uri->segment(1) ? 'class=selected' : ''); ?></li>
                <li><?php echo anchor('hospital', 'Hospitais', 'hospital' == $this->uri->segment(1) ? 'class=selected' : ''); ?></li>
                <li><?php echo anchor('jogo', 'Jogos', 'jogo' == $this->uri->segment(1) ? 'class=selected' : ''); ?></li>
                <li><?php echo anchor('restaurante', 'Restaurantes', 'restaurante' == $this->uri->segment(1) ? 'class=selected' : ''); ?></li>
                <li><?php echo anchor('estadio', 'Estadios', 'estadio' == $this->uri->segment(1) ? 'class=selected' : ''); ?></li>
                <li><?php echo anchor('hotel', 'Hoteis', 'hotel' == $this->uri->segment(1) ? 'class=selected' : ''); ?></li>
                <li><?php echo anchor('turismo', 'Turismo', 'turismo' == $this->uri->segment(1) ? 'class=selected' : ''); ?></li>
                <li><?php echo anchor('pais', 'Paises', 'pais' == $this->uri->segment(1) ? 'class=selected' : ''); ?></li>
                <li><?php echo anchor('estacao', 'Transporte', 'estacao' == $this->uri->segment(1) ? 'class=selected' : ''); ?></li>
            </ul>
	</div>
    </div>
    
    <?php if(isset($submenu)){?>
        <div id="submenu-wrapper" class="clear">
            <div id="submenu" class="wrapper">
                <ul>
                    <?php foreach($submenu as $opc){ ?>
                        <li>
                            <?php echo anchor($opc['link'],$opc['nome'])?>
                        </li>
                    <?php } ?>
                 </ul>
            </div>
        </div>
    <?php } ?>
        
    
    <?php if($this->session->userdata('mensagem')){ ?>
	<div id='mensagem'>
    <?php echo $this->session->userdata('mensagem');
	}
	$this->session->unset_userdata('mensagem');?>
	</div>
    <?php if($this->session->userdata('erro')){ ?>
	<div id='erro'>
    <?php echo $this->session->userdata('erro');
        }
	$this->session->unset_userdata('erro');?>
        </div>

    <div id="principal">
        <div id="conteudo-wrapper">
            <div id="conteudo" class="clear wrapper">
                <div class="interno">
	
                                    
                                    